#include <stdio.h>
#include "tinyFS.h"

int main(int argc, char *argv[]) {
   int diskNum;
   char *string, *test;
   diskNum = openDisk("test.txt", BLOCKSIZE * 2);
   diskNum = openDisk("test2.txt", BLOCKSIZE * 3);
   diskNum = openDisk("test2.txt", BLOCKSIZE * 3);

   string = malloc(BLOCKSIZE);
   test = malloc(BLOCKSIZE);
   strcpy(string, "aaaaaaaaaaaaaaasdfasdfasdghtwrtnwgnzcvzbcxveqrtaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
   writeBlock(diskNum, 0, string);
   readBlock(diskNum, 0, test);
   printf("%s\n", test);
   return 0;
}
